<me:UIWB19 x:Class="WPFExcelReport.TWB18X"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"  
           xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                   x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIWB19.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:SDKEYCONV x:Key="sd"/> 
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIWB19.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0">
            <WF:TBTNEXE INFO="疵点定义" DLL="TWBFEHL" CMD="ERK" STWNW="MainWindow"/>
         </WrapPanel>
        <DataGrid  Grid.Row="1"  Grid.Column="0"
                   VerticalAlignment="Top"  
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   IsReadOnly="True"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column"     
                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
                   IsSynchronizedWithCurrentItem="True" 
                   x:Name="dlgMaster"  
                   RowDetailsVisibilityMode="Visible"  Margin="0,0,0,0"
                    >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=WBFVERSION}" Header="{Binding Source={Localization:Translate Word=版本}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFFPOS}" Header="{Binding Source={Localization:Translate Word=序号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFFSCHL}" Header="{Binding Source={Localization:Translate Word=疵点/事件}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFFSCHL,Converter={StaticResource sd},ConverterParameter=0267}" Header="{Binding Source={Localization:Translate Word=说明}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFFILLER,Converter={StaticResource gb2312}}" Header="{Binding Source={Localization:Translate Word=挡车工}}"  Width="60" />
                <DataGridTextColumn Binding="{Binding Path=WBFLGVON,Converter={StaticResource d1000}}" Header="{Binding Source={Localization:Translate Word=开始}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFLGBIS,Converter={StaticResource d1000}}" Header="{Binding Source={Localization:Translate Word=结束}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFBRTVON,Converter={StaticResource d1000}}" Header="{Binding Source={Localization:Translate Word=左起}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFBRTBIS,Converter={StaticResource d1000}}" Header="{Binding Source={Localization:Translate Word=至}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFMARKART}" Header="{Binding Source={Localization:Translate Word=织造班}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFRWPOST}" Header="{Binding Source={Localization:Translate Word=挡车工}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=WBFVGUET}" Header="{Binding Source={Localization:Translate Word=挡车记录}}"  Width="Auto" /> 
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</me:UIWB19>
